#ifndef __RTC_H__
#define __RTC_H__

#include "app_types.h"

struct datetime_t
{
	uint8_t sec;
	uint8_t min;
	uint8_t hour;
	uint8_t day;
	uint8_t month;
	uint8_t year; // ohne 2000
	uint8_t weekday;
};

int8_t rtc_init();
int8_t rtc_get_datetime(struct datetime_t *dt);
int8_t rtc_set_datetime(struct datetime_t *dt);

#endif // __RTC_H__
